home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 291 < prev    next >
Encoding:
Text File  |  1996-08-05  |  872 b   |  36 lines

  1. Path: mn5.swip.net!usenet
  2. From: peter.osterlund@mailbox.swipnet.se (Peter ╓sterlund)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: GCC option -D
  5. Date: 5 Jan 1996 19:47:34 GMT
  6. Organization: -
  7. Distribution: world
  8. Message-ID: <4cjv8m$3ak@mn5.swip.net>
  9. NNTP-Posting-Host: dialup97-003.swipnet.se
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-NewsSoftware: GRn 2.1 Feb 19, 1994
  14.  
  15. I would like to do something like
  16.  
  17. gcc -DX="word1 word2" test.c -o test
  18.  
  19. The problem is that gcc thinks that the definition of X is X="word1
  20. and then complains about not understanding word2". Is there a way around
  21. this problem?
  22.  
  23. I am using GCC 2.7.0 and the standard amiga shell.
  24.  
  25. --
  26.  
  27. Address: Peter ╓sterlund
  28.      Sk÷ndalsvΣgen 35
  29.      S-128 66 Sk÷ndal
  30.      Sweden
  31.  
  32. Phone:     +46 8 942647
  33. E-mail:  f90-pos@nada.kth.se
  34.      peter.osterlund@mailbox.swipnet.se
  35.  
  36.